fruits = ['Apple', 'Orange', 'Banana', 'Mango']
print(fruits)
print(fruits[2])
print(fruits[-1])

numbers = [1, 2, 3, 4, 5, 6, 7]
print(numbers)
numbers[3] = 100
numbers[4] = 88
print(numbers)
# 在数组末尾追加元素
numbers.append(666)
print(numbers)
# insert 指定位置插入元素
numbers.insert(5,88888)
print(numbers)

# 删除数组中的元素
# del
name = ['刘亦菲','李沁','文琪','陈昊宇','宋佳']
print(name)
del name[2]
print(name)

# pop
poped_name=name.pop();
print(name)
print(poped_name)
poped_name=name.pop(1);
print(poped_name)

# remove
name = ['刘亦菲','李沁','文琪','陈昊宇','宋佳']
print(name) 
name.remove('陈昊宇')
print(name)